SUPPORT / SAMPLES & SAS NOTES
 

Support

Problem Note 40071: Character columns might be padded with a null value when you join two or more ODBC tables

DetailsAboutRate It

A character column is padded with an extra null value rather than a blank when you increase the column length in the SELECT statement of a join operation that involves two or more ODBC tables.

Example:

libname mssql odbc dsn=odbcdata user=sasdemo pw=saspw; proc sql; create table xx as select x1.txt LENGTH = 6, x2.id from mssql.x1, mssql.x2 where x1.id=x2.id; quit;

If the .txt variable is shorter than 6 bytes in the ODBC table, the value '00'x is appended to the original string.

There is no solution for this problem. However, the problem is fixed in SAS® 9.2.



Operating System and Release Information

Product FamilyProductSystemSAS Release
ReportedFixed*
SAS SystemSAS/ACCESS Interface to ODBCMicrosoft Windows Server 2003 Enterprise Edition9.1 TS1M3 SP49.2 TS2M2
Microsoft Windows Server 2003 Datacenter Edition9.1 TS1M3 SP49.2 TS2M2
Microsoft Windows XP Professional9.1 TS1M3 SP49.2 TS2M2
Microsoft® Windows® for 64-Bit Itanium-based Systems9.1 TS1M3 SP49.2 TS2M2
Microsoft Windows Server 2003 Datacenter 64-bit Edition9.1 TS1M3 SP49.2 TS2M2
Microsoft Windows Server 2003 Enterprise 64-bit Edition9.1 TS1M3 SP49.2 TS2M2
Microsoft Windows XP 64-bit Edition9.1 TS1M3 SP49.2 TS2M2
Microsoft Windows Server 2003 Standard Edition9.1 TS1M3 SP49.2 TS2M2
Windows Vista9.1 TS1M3 SP49.2 TS2M2
Windows Vista for x649.1 TS1M3 SP49.2 TS2M2
* For software releases that are not yet generally available, the Fixed Release is the software release in which the problem is planned to be fixed.